package com.mxdx.edu.service;

import com.mxdx.edu.model.StlistInfo;
import com.mxdx.edu.model.StudentInfo;

import java.util.List;
import java.util.Map;

/**
 * 学生service
 *
 * @author howie
 * @date 2018-02-12
 */
public interface IStudentService {

	/**
	 * 保存学生信息
	 * @param studentInfo
	 */
	void save(StudentInfo studentInfo);

	/**
	 * 保存添加好友信息
	 * @param stlistInfo
	 */
	void saveStlist(StlistInfo stlistInfo);

	/**
	 * 通过手机号查询用户信息
	 * @param param
	 * @return Boolean
	 */
	boolean checkStudentByPhoneNumber(Map<String, Object> param);

	/**
	 * 验证登录
	 * @param param
	 * @return
	 */
	boolean checkLogin(Map<String, Object> param);

	/**
	 * 通过手机号查找用户信息
	 * @param phoneNumber
	 * @return
	 */
	Map<String, Object> findMapByPhoneNumber(String phoneNumber);

	/**
	 * 通过手机号和类型查找用户信息
	 * @param phoneNumber
	 * @param studentType
	 * @return
	 */
	Map<String, Object> findMapByPhoneNumberAndStudentType(String phoneNumber, String studentType);

	/**
	 * 通过Map更新学生信息
	 * @param param
	 */
	void updateStudentInfoByMap(Map<String, Object> param);

	/**
	 * 通过map直接查询一条信息
	 * @param param
	 * @return
	 */
	Map<String, Object> findStudentMapOneByMap(Map<String, Object> param);

	List<Map<String, Object>> findListByMap(Map<String, Object> param);

	List<Map<String, Object>> findSchoolmateByMap(Map<String, Object> param);

	List<Map<String, Object>> findFriendsByMap(Map<String, Object> param);

	List<Map<String, Object>> findFcirlsByMap(Map<String, Object> param);

	List<Map<String, Object>> findCirlsByMap(Map<String, Object> param);

	List<Map<String, Object>> findSfridByMap(Map<String, Object> param);

	List<Map<String, Object>> findNfridByMap(Map<String, Object> param);
	/**
	 * 通过Map更新好友通过信息
	 * @param param
	 */
	void updateSlistByMap(Map<String, Object> param);


	/**
	 * 修改密码
	 * @param param
	 */
	boolean updatePwdByMap(Map<String, Object> param);

	List<Map<String, Object>> findCirlsComment(Map<String, Object> findMap);

	boolean saveCirls(Map<String, Object> findMap);

	boolean saveComment(Map<String, Object> findMap);
 
}
